﻿@model WmWebSystem.Models.UserAccount

@{
    ViewBag.Title = "账号信息变更";
    Layout = "~/Views/Shared/_Layout_manage.cshtml";
}

<script src="@Url.Content("~/Scripts/BasicJs/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/BasicJs/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="contentcontainer">
    <div class="headings">
        <h2>用户账号信息更改</h2>
    </div>
    <div class="contentbox">
        @using (Html.BeginForm("ChangeAccountInf", "Account", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.UserId)
            <table>
                <tr>
                    <th width="200px">用户名</th>
                    <td>
                       @Html.EditorFor(model => model.Name, new { @class = "box" })
                       @Html.ValidationMessageFor(model => model.Name)
                    </td>
                </tr>
                <tr>
                    <th>邮  箱</th>
                    <td>
                       @Html.EditorFor(model => model.Email)
                       @Html.ValidationMessageFor(model => model.Email)
                    </td>
                </tr>
                <tr>
                    <th>联系方式</th>
                    <td>
                       @Html.EditorFor(model => model.Telephone)
                       @Html.ValidationMessageFor(model => model.Telephone)
                    </td>
                </tr>
                <tr>
                    <th>通讯地址</th>
                    <td>
                       @Html.EditorFor(model => model.Address)
                       @Html.ValidationMessageFor(model => model.Address)
                    </td>
                </tr>
                <tr>
                    <th>用户头像</th>
                    <td>
                       <input type="file" id="userlogo" />
                    </td>
                </tr>
                <tr>
                   <th></th>
                   <td>
                    <input type="button" title="取消" value="<< 返回" id="GoBackList" onclick="history.go(-1)" />
                    <input type="submit" id="CreateSubmit" class="btn" title="确认更改" value="确认更改 >> "  />
                   </td>
                </tr>
            </table>
        }
        <div style="clear: both;"></div>
    </div>
</div>
